package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class OswDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream SOS=new FileOutputStream("dd.txt");
        OutputStreamWriter sis=new OutputStreamWriter(SOS, StandardCharsets.UTF_8);
        sis.write("打死你个龟孙");
        sis.write(",继续打屎你个龟孙");
        System.out.println("搞定");
        sis.close();
        FileOutputStream del=new FileOutputStream("dd.txt");
        OutputStreamWriter fel=new OutputStreamWriter(del);
        fel.write("胡杨年华");
        fel.write("家居建材");
        System.out.println("好了");
        fel.close();

    }
}
